<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">    <!-- 听说这一句要，但我没有要这个标签，也能用  -->
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title id ="title_x">本地磁盘文件</title>
    <script src="/js/jquery-3.4.1.js"></script>
    <script>
        $(document).ready(function(){
            var fileName = "[[${fileName}]]";
            $("#title_x").html(fileName);
        });
        </script>

</head>
<body>
  <video id='my-video' class='video-js'
            controls preload='auto'    
            style="width: 100%; height: 100%;
            object-fit:fill"
            poster='video/video.png'>
    <source th:src="@{'/localFiles/'+${fileName}}"+ type="video/mp4">
    Your browser does not support the video tag.
  </video>
</body>
</html>